import request from '@/utils/request'

// 查询工作区列表
export function listWorkArea(query) {
  return request({
    url: '/wms/base/workArea/list',
    method: 'get',
    params: query
  })
}

// 查询工作区详细
export function getWorkArea(workAreaId) {
  return request({
    url: '/wms/base/workArea/' + workAreaId,
    method: 'get'
  })
}

// 新增工作区
export function addWorkArea(data) {
  return request({
    url: '/wms/base/workArea',
    method: 'post',
    data: data
  })
}

// 修改工作区
export function updateWorkArea(data) {
  return request({
    url: '/wms/base/workArea',
    method: 'put',
    data: data
  })
}

// 删除工作区
export function delWorkArea(workAreaId) {
  return request({
    url: '/wms/base/workArea/' + workAreaId,
    method: 'delete'
  })
} 